<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>圣杯布局</title>
  <style>
    html,
    body {
      padding: 0px;
      margin: 0;
      width: 100%;
      height: 100%;
      box-sizing: border-box;
    }

    .container {
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
    }

    .header {
      width: 100%;
      height: 60px;
      background: #bae0e3;
    }

    .content {
      width: 100%;
      flex: 1;
      background-color: antiquewhite;
      box-sizing: border-box;
    }

    .wrapper{
      padding: 0 100px;
    }

    .middle {
      width: 100%;
      height: 100%;
      background-color: #d9d9d9;
      float: left;
    }

    .left {
      width: 100px;
      height: 100%;
      background-color: #d5d60f;
      float: left;
      position: relative;
      margin-left: -100%;
      right: 100px;
      
    }

    .right {
      width: 100px;
      height: 100%;
      background-color: #8cc94c;
      float: left;
      margin-right: -100px;
    }

    .footer {
      width: 100%;
      height: 60px;
      background: #bae0e3;
    }
  </style>
</head>

<body>
  <div class="container">
    <div class="header">header</div>
    <div class="content wrapper">
      <div class="middle">middle</div>
      <div class="left">left</div>
      <div class="right">right</div>
    </div>
    <div class="footer">footer</div>
  </div>
</body>

</html>